Skip to content

fix: rustfmt and clippy cleanup after sprint 1-4 merges - #301

Merged
kacy merged 1 commit into
mainfrom
fix/fmt-and-clippy
Feb 25, 2026
Merged

fix: rustfmt and clippy cleanup after sprint 1-4 merges#301
kacy merged 1 commit into
mainfrom
fix/fmt-and-clippy

Conversation

@kacy

@kacy kacy commented Feb 25, 2026

Copy link
Copy Markdown
Owner

summary

all five sprint PRs (#296-#300) were merged without running cargo fmt --all or cargo clippy -- -D warnings first. this fixes everything in one shot.

what was fixed

  • execute.rs:138 — redundant closure: |e| set_expire_to_duration(e)set_expire_to_duration
  • list.rs:540cloned_ref_to_slice_refs: &[value.clone()]std::slice::from_ref(&value)
  • formatting in batch.rs, watch.rs, connection.rs, raft_log.rs, aof.rs, command/mod.rs, server.rs, string.rs, zset.rs — all reformatted by cargo fmt --all

what was tested

  • cargo fmt --all --check → clean
  • cargo clippy --workspace -- -D warnings → clean
  • cargo test --workspace → 78 unit/integration tests pass
  • integration tests run with --test-threads 1 → all 79 pass (cluster tests have pre-existing port contention flakiness under parallel execution, unrelated to this pr)

cargo fmt --all and cargo clippy -D warnings pass clean.
fixes:
- redundant closure in execute.rs (set_expire_to_duration)
- cloned_ref_to_slice_refs in list.rs (lmove)
- formatting across batch.rs, watch.rs, connection.rs, and other files
  that were committed without running fmt
@kacy
kacy merged commit 74620b7 into main Feb 25, 2026
@kacy
kacy deleted the fix/fmt-and-clippy branch February 25, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant